package modelo;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

/**
 *
 * @author SCHETTINO
 */
@Entity
@DiscriminatorValue("ALUNO")
public class Aluno extends Usuario implements Serializable {

    @Column(nullable = false, unique = true)
    private String matricula;
    
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "aluno")
    private List<AlunoTurma> listaAlunoTurma;

    public String getMatricula() {
        return matricula;
    }

    public void setMatricula(String matricula) {
        this.matricula = matricula;
    }

    public List<AlunoTurma> getListaAlunoTurma() {
        return listaAlunoTurma;
    }

    public void setListaAlunoTurma(List<AlunoTurma> listaAlunoTurma) {
        this.listaAlunoTurma = listaAlunoTurma;
    }
}
